$def with (posts)

<h1>Blog posts</h1>

<ul>
    $for post in posts:
    <li>
        <a href="/view/$post.id">$post.title</a>
        from $datestr(post.posted_on)
        <a href="/edit/$post.id">Edit</a>
        <a href="/delete/$post.id">Delete</a>        
    </li>
</ul>